package org.bigdata.framework.core.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 
 * </p>
 *
 * @author dal.anhuifeng
 * @since 2017-10-17
 */
@TableName("community_knowledge_resource")
public class CommunityKnowledgeResource implements Serializable {

    private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(type = IdType.AUTO)
	private Integer id;

	/**
	 * 标题
	 */
	private String title;

	/**
	 * （0-文章模式 1-文件在线预览模式）
	 */
	private Integer type;

	/**
	 * 摘要
	 */
	private String summary;

	/**
	 * 内容
	 */
	private String content;

	/**
	 * 上传文件
	 */
	@TableField(value="file_path")
	private String filePath;

	/**
	 * 创建者用户名
	 */
	@TableField(value="create_username")
	private String createUsername;

	/**
	 * 创建时间
	 */
	@TableField(value="create_time")
	private String createTime;

	/**
	 * 更新时间
	 */
	@TableField(value="update_time")
	private String updateTime;

	/**
	 * 所属知识库
	 */
	@TableField(value="knowledge_id")
	private Integer knowledgeId;

	/**
	 * 所属知识点（末级节点id）
	 */
	@TableField(value="knowledge_point_id")
	private Integer knowledgePointId;

	/**
	 * 状态（0-待审核 1-审核通过）
	 */
	private Integer status;

	/**
	 * 数据来源（0-知识服务平台 1-知识社区）
	 */
	@TableField(value="data_source")
	private Integer dataSource;

	/**
	 * 资源库标识
	 */
	@TableField(value="data_classes_en")
	private String dataClassesEn;

	/**
	 * 资源id
	 */
	@TableField(value="data_id")
	private String dataId;



	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getSummary() {
		return summary;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String getCreateUsername() {
		return createUsername;
	}

	public void setCreateUsername(String createUsername) {
		this.createUsername = createUsername;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	public Integer getKnowledgeId() {
		return knowledgeId;
	}

	public void setKnowledgeId(Integer knowledgeId) {
		this.knowledgeId = knowledgeId;
	}

	public Integer getKnowledgePointId() {
		return knowledgePointId;
	}

	public void setKnowledgePointId(Integer knowledgePointId) {
		this.knowledgePointId = knowledgePointId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getDataSource() {
		return dataSource;
	}

	public void setDataSource(Integer dataSource) {
		this.dataSource = dataSource;
	}

	public String getDataClassesEn() {
		return dataClassesEn;
	}

	public void setDataClassesEn(String dataClassesEn) {
		this.dataClassesEn = dataClassesEn;
	}

	public String getDataId() {
		return dataId;
	}

	public void setDataId(String dataId) {
		this.dataId = dataId;
	}

}
